import App from './App'
import Vuex from '@/store/index.js';

// 自定义组件
import Coupon from "@/components/coupon/index"

// #ifdef APP-PLUS || H5
import Vant from 'vant';
import 'vant/lib/index.css';
// #endif


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'

export function createApp() {
	const app = createSSRApp(App)
	// 自定义组件
	app.component('coupon',Coupon)
	// #ifdef APP-PLUS || H5
	app.use(Vant)
	// #endif
	// 将 store 实例作为插件安装
	app.use(Vuex.store)
	return {
		app
	}
}
// #endif
